package com.service.impl;

import com.bean.Evaluate;
import com.dao.EvaluateDao;
import com.dao.impl.EvaluateDaoImpl;
import com.service.EvaluateService;

import java.util.List;
import java.util.Map;

public class EvaluateServiceImpl implements EvaluateService {

    private EvaluateDao evaluateDao=new EvaluateDaoImpl();
    @Override
    public void useraddEvaluate(Evaluate evaluate) {
        evaluateDao.saveEvaluate(evaluate);
    }

    @Override
    public List<Evaluate> queryMyEvaluate(String id) {
        return evaluateDao.querymyEvaluate(id);
    }

    @Override
    public List<Evaluate> queryByFlowerid(Integer flowerid) {
        return evaluateDao.queryByFlowerid(flowerid);
    }

    @Override
    public List<Map<String, Object>> listMyEvaluate(String id) {
        return evaluateDao.listMyEvaluate(id);
    }
}
